module.exports={
    publicPath:"./",//保证打包后的css js资源的访问路径正确
    outputDir:"roseonly",
    devServer:{
        proxy:{
            '/api/homeServer':{//首页
                target:'https://m.roseonly.com.cn',
                ChangeOrigin:true,
                pathRewrite:{
                    '^/api/homeServer':''
                }
            },
            '/api/menuServer':{//分类页
                target:'https://www.roseonly.com.cn',
                pathRewrite:{
                    '^/api/menuServer':'' 
                }
            },
            '/api/detailServer':{//详情页、购物车页、列表页
                target:'https://api.roseonly.com.cn',
                pathRewrite:{
                    '^/api/detailServer':''
                }
            },
            '/local':{//详情页、购物车页、列表页
                target:'http://localhost:3000',
                pathRewrite:{
                    '^/local':''
                }
            },
        }
    }
}